home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / content / nsIFIXptr.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  3KB  |  104 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIFIXptr.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIFIXptr_h__
  6. #define __gen_nsIFIXptr_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17. class nsIDOMDocument; /* forward declaration */
  18.  
  19. class nsIDOMRange; /* forward declaration */
  20.  
  21.  
  22. /* starting interface:    nsIFIXptrEvaluator */
  23. #define NS_IFIXPTREVALUATOR_IID_STR "50d28211-8fb8-4323-b93d-08a6e80e559e"
  24.  
  25. #define NS_IFIXPTREVALUATOR_IID \
  26.   {0x50d28211, 0x8fb8, 0x4323, \
  27.     { 0xb9, 0x3d, 0x08, 0xa6, 0xe8, 0x0e, 0x55, 0x9e }}
  28.  
  29. /**
  30.  * nsIFIXptrEvaluator resolves a FIXptr expression
  31.  */
  32. class NS_NO_VTABLE nsIFIXptrEvaluator : public nsISupports {
  33.  public: 
  34.  
  35.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IFIXPTREVALUATOR_IID)
  36.  
  37.   /**
  38.    * Evaluate a FIXptr expression.
  39.    *
  40.    * @param aDocument   The document in which to evaluate.
  41.    * @param aExpression The FIXptr expression string to evaluate.
  42.    * @return            The result.
  43.    */
  44.   /* nsIDOMRange evaluate (in nsIDOMDocument aDocument, in DOMString aExpression); */
  45.   NS_IMETHOD Evaluate(nsIDOMDocument *aDocument, const nsAString & aExpression, nsIDOMRange **_retval) = 0;
  46.  
  47. };
  48.  
  49. /* Use this macro when declaring classes that implement this interface. */
  50. #define NS_DECL_NSIFIXPTREVALUATOR \
  51.   NS_IMETHOD Evaluate(nsIDOMDocument *aDocument, const nsAString & aExpression, nsIDOMRange **_retval); 
  52.  
  53. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  54. #define NS_FORWARD_NSIFIXPTREVALUATOR(_to) \
  55.   NS_IMETHOD Evaluate(nsIDOMDocument *aDocument, const nsAString & aExpression, nsIDOMRange **_retval) { return _to Evaluate(aDocument, aExpression, _retval); } 
  56.  
  57. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  58. #define NS_FORWARD_SAFE_NSIFIXPTREVALUATOR(_to) \
  59.   NS_IMETHOD Evaluate(nsIDOMDocument *aDocument, const nsAString & aExpression, nsIDOMRange **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->Evaluate(aDocument, aExpression, _retval); } 
  60.  
  61. #if 0
  62. /* Use the code below as a template for the implementation class for this interface. */
  63.  
  64. /* Header file */
  65. class nsFIXptrEvaluator : public nsIFIXptrEvaluator
  66. {
  67. public:
  68.   NS_DECL_ISUPPORTS
  69.   NS_DECL_NSIFIXPTREVALUATOR
  70.  
  71.   nsFIXptrEvaluator();
  72.  
  73. private:
  74.   ~nsFIXptrEvaluator();
  75.  
  76. protected:
  77.   /* additional members */
  78. };
  79.  
  80. /* Implementation file */
  81. NS_IMPL_ISUPPORTS1(nsFIXptrEvaluator, nsIFIXptrEvaluator)
  82.  
  83. nsFIXptrEvaluator::nsFIXptrEvaluator()
  84. {
  85.   /* member initializers and constructor code */
  86. }
  87.  
  88. nsFIXptrEvaluator::~nsFIXptrEvaluator()
  89. {
  90.   /* destructor code */
  91. }
  92.  
  93. /* nsIDOMRange evaluate (in nsIDOMDocument aDocument, in DOMString aExpression); */
  94. NS_IMETHODIMP nsFIXptrEvaluator::Evaluate(nsIDOMDocument *aDocument, const nsAString & aExpression, nsIDOMRange **_retval)
  95. {
  96.     return NS_ERROR_NOT_IMPLEMENTED;
  97. }
  98.  
  99. /* End of implementation class template. */
  100. #endif
  101.  
  102.  
  103. #endif /* __gen_nsIFIXptr_h__ */
  104.